<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="main-init.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="header">
	<nav class="navbar   navbar-site navbar-default" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button data-target=".navbar-collapse" data-toggle="collapse"
					class="navbar-toggle" type="button">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a href="index" class="navbar-brand logo logo-title"> <span
					class="logo-icon"><img src="images/banner_65.png" /></span>
				</a>
			</div>

			<div class="navbar-collapse collapse">
				<c:if test="${sessionScope.session_user==null}">
						<ul class="nav navbar-nav navbar-right">
							<li><a href="signup">注册</a></li>
						</ul>
				</c:if>
				<c:if test="${sessionScope.session_user==null}">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="login">登录</a></li>
					</ul>
				</c:if>
				<c:if test="${sessionScope.session_user!=null}">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="user/logout">退出 <i
								class="glyphicon glyphicon-off"></i>
						</a></li>
						<li class="dropdown"><a href="accounthome?curPage=1"
							class="dropdown-toggle"> <span>${sessionScope.session_user.userName}</span>
								<i class="icon-user fa"></i>
						</a></li>
					</ul>
				</c:if>
			</div>

		</div>

	</nav>
</div>

